<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: chi::ModuleCache Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structchi_1_1ModuleCache.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="structchi_1_1ModuleCache-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">chi::ModuleCache Struct Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>This class provides an interface for creating module caches.  
 <a href="structchi_1_1ModuleCache.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="ModuleCache_8hpp_source.html">chi/ModuleCache.hpp</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for chi::ModuleCache:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache__inherit__graph.svg" width="178" height="112"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a471e0c0822bccdd1fa5ed1bc34f7d641"><td class="memItemLeft" align="right" valign="top"><a id="a471e0c0822bccdd1fa5ed1bc34f7d641"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a471e0c0822bccdd1fa5ed1bc34f7d641">ModuleCache</a> (<a class="el" href="structchi_1_1Context.html">Context</a> &amp;ctx)</td></tr>
<tr class="memdesc:a471e0c0822bccdd1fa5ed1bc34f7d641"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a module cache with a bound context. <br /></td></tr>
<tr class="separator:a471e0c0822bccdd1fa5ed1bc34f7d641"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf08b5aae075a9c88d7f5c8c84e2ee40"><td class="memItemLeft" align="right" valign="top"><a id="acf08b5aae075a9c88d7f5c8c84e2ee40"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ModuleCache</b> (const <a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;)=delete</td></tr>
<tr class="separator:acf08b5aae075a9c88d7f5c8c84e2ee40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add62dd291fc17dcc03d3f219c51a78d2"><td class="memItemLeft" align="right" valign="top"><a id="add62dd291fc17dcc03d3f219c51a78d2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ModuleCache</b> (<a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:add62dd291fc17dcc03d3f219c51a78d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ebdd2fe3e0835df8abfb0efe642dad3"><td class="memItemLeft" align="right" valign="top"><a id="a5ebdd2fe3e0835df8abfb0efe642dad3"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a5ebdd2fe3e0835df8abfb0efe642dad3">~ModuleCache</a> ()=default</td></tr>
<tr class="memdesc:a5ebdd2fe3e0835df8abfb0efe642dad3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a5ebdd2fe3e0835df8abfb0efe642dad3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf93dc80687d0d13ebba4d3f5d215620"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structchi_1_1Result.html">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#acf93dc80687d0d13ebba4d3f5d215620">cacheModule</a> (const boost::filesystem::path &amp;moduleName, llvm::Module &amp;compiledModule, std::time_t timeAtFileRead)=0</td></tr>
<tr class="memdesc:acf93dc80687d0d13ebba4d3f5d215620"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cache a module.  <a href="#acf93dc80687d0d13ebba4d3f5d215620">More...</a><br /></td></tr>
<tr class="separator:acf93dc80687d0d13ebba4d3f5d215620"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa46e60b79154f29101838c25d0d52ff8"><td class="memItemLeft" align="right" valign="top">virtual std::time_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#aa46e60b79154f29101838c25d0d52ff8">cacheUpdateTime</a> (const boost::filesystem::path &amp;moduleName) const =0</td></tr>
<tr class="memdesc:aa46e60b79154f29101838c25d0d52ff8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the time that a cache was updated.  <a href="#aa46e60b79154f29101838c25d0d52ff8">More...</a><br /></td></tr>
<tr class="separator:aa46e60b79154f29101838c25d0d52ff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00529c4dd7aa04ffdf43689abd24f183"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structchi_1_1Context.html">Context</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a00529c4dd7aa04ffdf43689abd24f183">context</a> () const</td></tr>
<tr class="memdesc:a00529c4dd7aa04ffdf43689abd24f183"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the context this cache is bound to.  <a href="#a00529c4dd7aa04ffdf43689abd24f183">More...</a><br /></td></tr>
<tr class="separator:a00529c4dd7aa04ffdf43689abd24f183"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1da914cd290102492f3b588af705d02c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a1da914cd290102492f3b588af705d02c">invalidateCache</a> (const boost::filesystem::path &amp;moduleName)=0</td></tr>
<tr class="memdesc:a1da914cd290102492f3b588af705d02c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inavlidate the cache, ie.  <a href="#a1da914cd290102492f3b588af705d02c">More...</a><br /></td></tr>
<tr class="separator:a1da914cd290102492f3b588af705d02c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad903c2a61901bdb750698ba6f93911aa"><td class="memItemLeft" align="right" valign="top"><a id="ad903c2a61901bdb750698ba6f93911aa"></a>
<a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;)=delete</td></tr>
<tr class="separator:ad903c2a61901bdb750698ba6f93911aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71f1a9f2466fe55974f24ab389d693e2"><td class="memItemLeft" align="right" valign="top"><a id="a71f1a9f2466fe55974f24ab389d693e2"></a>
<a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (<a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a> &amp;&amp;)=delete</td></tr>
<tr class="separator:a71f1a9f2466fe55974f24ab389d693e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a052da4f3f833549b36234932268d5e2c"><td class="memItemLeft" align="right" valign="top">virtual std::unique_ptr&lt; llvm::Module &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structchi_1_1ModuleCache.html#a052da4f3f833549b36234932268d5e2c">retrieveFromCache</a> (const boost::filesystem::path &amp;moduleName, std::time_t atLeastThisNew)=0</td></tr>
<tr class="memdesc:a052da4f3f833549b36234932268d5e2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve a module from the cache.  <a href="#a052da4f3f833549b36234932268d5e2c">More...</a><br /></td></tr>
<tr class="separator:a052da4f3f833549b36234932268d5e2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This class provides an interface for creating module caches. </p>

<p class="definition">Definition at line <a class="el" href="ModuleCache_8hpp_source.html#l00016">16</a> of file <a class="el" href="ModuleCache_8hpp_source.html">ModuleCache.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="acf93dc80687d0d13ebba4d3f5d215620"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf93dc80687d0d13ebba4d3f5d215620">&#9670;&nbsp;</a></span>cacheModule()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structchi_1_1Result.html">Result</a> chi::ModuleCache::cacheModule </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">llvm::Module &amp;&#160;</td>
          <td class="paramname"><em>compiledModule</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::time_t&#160;</td>
          <td class="paramname"><em>timeAtFileRead</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Cache a module. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to cache </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!moduleName.empty()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">compiledModule</td><td>The IR that's been compiled from this module </td></tr>
    <tr><td class="paramname">timeAtFileRead</td><td>The time to store as the cache time. Should be the time the module was read from disk </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The <a class="el" href="structchi_1_1Result.html" title="The result object, used for identifiying errors with good diagnostics. ">Result</a> </dd></dl>

<p>Implemented in <a class="el" href="structchi_1_1DefaultModuleCache.html#a5b638a834c434c103ebc5c0d3a70d021">chi::DefaultModuleCache</a>.</p>

<p class="reference">Referenced by <a class="el" href="Context_8cpp_source.html#l00298">chi::Context::compileModule()</a>, and <a class="el" href="ModuleCache_8hpp_source.html#l00018">ModuleCache()</a>.</p>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_acf93dc80687d0d13ebba4d3f5d215620_icgraph.svg" width="456" height="104"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="aa46e60b79154f29101838c25d0d52ff8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa46e60b79154f29101838c25d0d52ff8">&#9670;&nbsp;</a></span>cacheUpdateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::time_t chi::ModuleCache::cacheUpdateTime </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the time that a cache was updated. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The module to get the last update time for </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The time it was updated, or 0 if there is no cache </dd></dl>

<p>Implemented in <a class="el" href="structchi_1_1DefaultModuleCache.html#a550d8acf4e89a39d9399c0f512ac04f3">chi::DefaultModuleCache</a>.</p>

<p class="reference">Referenced by <a class="el" href="ModuleCache_8hpp_source.html#l00018">ModuleCache()</a>.</p>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_aa46e60b79154f29101838c25d0d52ff8_icgraph.svg" width="474" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a00529c4dd7aa04ffdf43689abd24f183"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00529c4dd7aa04ffdf43689abd24f183">&#9670;&nbsp;</a></span>context()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structchi_1_1Context.html">Context</a>&amp; chi::ModuleCache::context </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the context this cache is bound to. </p>
<dl class="section return"><dt>Returns</dt><dd>the <code><a class="el" href="structchi_1_1Context.html" title="The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...">Context</a></code> </dd></dl>

<p class="definition">Definition at line <a class="el" href="ModuleCache_8hpp_source.html#l00059">59</a> of file <a class="el" href="ModuleCache_8hpp_source.html">ModuleCache.hpp</a>.</p>

<p class="reference">Referenced by <a class="el" href="DefaultModuleCache_8cpp_source.html#l00070">chi::DefaultModuleCache::cachePathForModule()</a>, and <a class="el" href="DefaultModuleCache_8cpp_source.html#l00087">chi::DefaultModuleCache::retrieveFromCache()</a>.</p>
<div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_a00529c4dd7aa04ffdf43689abd24f183_icgraph.svg" width="100%" height="504"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>
</div>

</div>
</div>
<a id="a1da914cd290102492f3b588af705d02c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1da914cd290102492f3b588af705d02c">&#9670;&nbsp;</a></span>invalidateCache()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void chi::ModuleCache::invalidateCache </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Inavlidate the cache, ie. </p>
<p>delete the cache file </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to invalidate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!moduleName.empty()</code> </dd></dl>

<p>Implemented in <a class="el" href="structchi_1_1DefaultModuleCache.html#a3b4f579458e59863f464f0b28e22ac10">chi::DefaultModuleCache</a>.</p>

<p class="reference">Referenced by <a class="el" href="ModuleCache_8hpp_source.html#l00018">ModuleCache()</a>.</p>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_a1da914cd290102492f3b588af705d02c_icgraph.svg" width="424" height="52"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<a id="a052da4f3f833549b36234932268d5e2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a052da4f3f833549b36234932268d5e2c">&#9670;&nbsp;</a></span>retrieveFromCache()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::unique_ptr&lt;llvm::Module&gt; chi::ModuleCache::retrieveFromCache </td>
          <td>(</td>
          <td class="paramtype">const boost::filesystem::path &amp;&#160;</td>
          <td class="paramname"><em>moduleName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::time_t&#160;</td>
          <td class="paramname"><em>atLeastThisNew</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve a module from the cache. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">moduleName</td><td>The name of the module to retrieve </td></tr>
  </table>
  </dd>
</dl>
<dl class="section pre"><dt>Precondition</dt><dd><code>!moduleName.empty()</code> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">atLeastThisNew</td><td>Make sure the cache is at least as new as this </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A llvm::Module, or nullptr if no suitable cache was found </dd></dl>

<p>Implemented in <a class="el" href="structchi_1_1DefaultModuleCache.html#a0ed6e8d3f71ca9e215d3564d5beb46c9">chi::DefaultModuleCache</a>.</p>

<p class="reference">Referenced by <a class="el" href="Context_8cpp_source.html#l00298">chi::Context::compileModule()</a>, and <a class="el" href="ModuleCache_8hpp_source.html#l00018">ModuleCache()</a>.</p>
<div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><iframe scrolling="no" frameborder="0" src="structchi_1_1ModuleCache_a052da4f3f833549b36234932268d5e2c_icgraph.svg" width="423" height="104"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
</div>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>lib/core/include/chi/<a class="el" href="ModuleCache_8hpp_source.html">ModuleCache.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacechi.html">chi</a></li><li class="navelem"><a class="el" href="structchi_1_1ModuleCache.html">ModuleCache</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
